from django.shortcuts import render
from rest_framework.views import APIView

from django.contrib.auth.models import User

from Apps.common.response import SuccessResponse


# Create your views here.


class GetUserView(APIView):
    authentication_classes = []

    def get(self, request, *args, **kwargs):
        queryset = User.objects.get(pk=1)

        return SuccessResponse(queryset.last_login)
